package com.cm.log_process.log_common.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Creator:郭兆鹏
 * Date:2019/12/12
 * 思路：分页数据返回类
 */
public class PageResult<T> implements Serializable {
    private List<T> row;
    private Long total;

    public PageResult() {
        this.row = new ArrayList<>();
        this.total = 0L;
    }

    public PageResult(List<T> row) {
        this.row = row;
    }

    public PageResult(List<T> row, Long total) {
        this.row = row;
        this.total = total;
    }

    public List<T> getRow() {
        return row;
    }

    public void setRow(List<T> row) {
        this.row = row;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }
}
